package com.gof.example.state;

/**
 * Created with IntelliJ IDEA.
 * Created by zhiyuan on 2018/5/13 16:32.
 * haiming.fei@tongdun.cn
 */
public class App {

    public static void main(String[] args) {
        Gamer gamer = new Gamer(39, "杨平");
        gamer.increasePoint(30);
        gamer.increasePoint(30);
        gamer.increasePoint(100);
        gamer.increasePoint(-30);
        gamer.increasePoint(-40);
        gamer.display();

        gamer.increasePoint(60);
        gamer.increasePoint(-50);
        gamer.display();

        gamer.increasePoint(90);
        gamer.increasePoint(-120);
        gamer.increasePoint(10);
        gamer.display();
    }
}
